<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminIndex/index')}">用户列表</a></li>
        <li class="active"><a> 编辑用户</a></li>
            <li class=""><a href="{:url('AdminIndex/relate')}?id={$id}"> 管理合作平台</a></li>
            <li class=""><a href="{:url('AdminIndex/money')}?id={$id}"> 提现方式</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminIndex/editPost')}">
        <div class="form-group">
            <label for="input-score" class="col-sm-2 control-label">用户名</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="score" value="{:empty($row['mobile'])?'':$row['mobile']}" disabled>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">手机号</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="mobile" value="{$row['mobile']|default=''}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">邮箱</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="user_email" value="{$row['user_email']|default=''}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">登录密码</label>
            <div class="col-md-6 col-sm-10">
                <input type="password" class="form-control" name="user_pass" value="">
                <p class="help-block">填写后就默认更改</p>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">开户状态</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="open_status" id="more-template-select">
                    <option value="">请选择模板</option>
                        <option <if condition="isset($row.open_status) && $row.open_status eq 1"> selected </if> value="1" > 已开户 </option>
                        <option <if condition="isset($row.open_status) && $row.open_status eq 2"> selected </if> value="2"> 未开户 </option>
                </select>

            </div>
        </div>




        <div class="form-group">
            <label class="col-sm-2 control-label">余额</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="balance" value="{$row['balance']|default=''}">
                <p class="help-block">金额变更将写入日志</p>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">金额变更备注</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="remark" value="{$row['remark']|default=''}">
                <p class="help-block">金额变更才需要写入</p>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">金额变更描述</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="description" value="{$row['description']|default=''}">
                <p class="help-block">金额变更才需要简单写入，例如 ：提现、内转 等</p>
            </div>
        </div>

        </br>



        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="id" value="{$id}">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="{:url('AdminUserIndex/index')}">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
<script>

</script>
</body>
</html>
